package com.caigou.service;

import com.caigou.bean.cms.entity.ArticleTitle;
import com.caigou.pojo.ArticleDataTitleListData;
import com.caigou.pojo.ArticleTitleData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleTitleService {
    ArticleTitle saveArticleTitleData(String articleId, Integer articleTitleType, String articleTitle, Integer articleImageId,
                                      String articleImage, String articleImageAlt);

    int loadArticleTitleExist(String articleId, Integer articleTitleType);

    int deleteArticleTitle(Integer id);

    List<ArticleTitleData> loadArticleTitleList(String articleId);

    int updateArticleTitleData(Integer id, Integer articleTitleType, String articleTitle, Integer articleImageId,
                               String articleImage, String articleImageAlt);


    ArticleTitle loadArticleTitle(String articleId, Integer titleType);

    int deleteArticleTitleByArticleId(String articleId);

    int loadArticleTitleReleaseStatus(String articleId, Integer articleTitleType);
}
